package com.chart.chart.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.chart.chart.domian.ChartConfigsAndViewsVo;
import com.chart.chart.domian.ChartViewsUser;
import com.chart.chart.domian.vo.ChartViewsVo;
import com.chart.chart.mapper.ChartViewsMapper;
import com.chart.chart.service.IChartViewsUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

import static com.chart.common.utils.PageUtils.startPage;

/**
 * 用户 业务层处理
 * 
 * @author ruoyi
 */
@Service
public class CharViewsUserServiceImpl extends ServiceImpl<ChartViewsMapper, ChartViewsUser> implements IChartViewsUserService
{

    @Autowired
    private ChartViewsMapper chartViewsMapper;

    @Override
    public List<ChartViewsVo> getList(ChartViewsVo chartViewsVo) {
        startPage();
        List<ChartViewsVo> list = chartViewsMapper.getList(chartViewsVo);
        return list;
    }

    @Override
    public boolean scatterChartViewUser(List<ChartViewsUser> collect) {
        return chartViewsMapper.scatterChartViewUser( collect);
    }

    @Override
    public boolean updateViewTop(ChartViewsUser chartViewsUser) {
        return chartViewsMapper.updateViewTop(chartViewsUser);
    }
}
